package cn.ad.model;

import cn.ad.enumration.OsType;
import org.apache.ibatis.type.Alias;

@Alias("pubSiteModel")
public class PubSiteModel {
	
	private int id;
	/**
	 * 媒体名称
	 */
	private String name;
	
	/**
	 * 媒体承载操作系统类型，0：未知,  1：android, 2：ios,  3：windows
	 */
	private int osType;
	
	/**
	 * 媒体分类
	 */
	private int appClassId;
	
	/**
	 * 备注信息
	 */
	private String description;
	
	/**
	 * 广告位个数
	 */
	private int spaces;
	
	/**
	 * 操作系统名称
	 */
	private String osName;
	
	/**
	 * 媒体名称
	 */
	private String appClassName;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getOsType() {
		return osType;
	}

	public void setOsType(int osType) {
		this.osType = osType;
	}

	public int getAppClassId() {
		return appClassId;
	}

	public void setAppClassId(int appClassId) {
		this.appClassId = appClassId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getSpaces() {
		return spaces;
	}

	public void setSpaces(int spaces) {
		this.spaces = spaces;
	}

	public String getOsName() {
		return OsType.forValue(osType);
	}

	public void setOsName(String osName) {
		this.osName = osName;
	}

	public String getAppClassName() {
		return appClassName;
	}

	public void setAppClassName(String appClassName) {
		this.appClassName = appClassName;
	}
	
	
}
